using ICSharpCode.SharpZipLib.Zip;

namespace SolutionFactory.Exporter
{
    public class FileArchiveService
    {
        private Logger _logger;
        public FileArchiveService(Logger logger)
        {
            _logger = logger;
        }

        public void ZipTemplate(string dir, string fileName)
        {
            FastZip lib = CreateZip();

            lib.CreateZip(fileName, dir, true, null);
        }

        private FastZip CreateZip()
        {
            return new FastZip(new LogZipEvent(_logger));
        }
       
    }
}